package com.lxq.rental.application.config;
/**
 * @description:
 * @author: LuoXiaoQiang
 * @date: 5/10/2025 1:51 AM
 * Copyright (c) 2025, LXQ Cloud All Rights Reserved.
 */


import io.swagger.v3.oas.annotations.enums.SecuritySchemeType;
import io.swagger.v3.oas.annotations.security.SecurityScheme;
import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@SecurityScheme(
        name = "bearerAuth",
        type = SecuritySchemeType.HTTP,
        bearerFormat = "JWT",
        scheme = "bearer"
)
public class SwaggerConfig {

    @Bean
    public OpenAPI customOpenAPI() {
        return new OpenAPI()
                .info(new Info()
                        .title("房屋出租管理系统 API")
                        .version("1.0")
                        .description("基于 Spring Boot + MyBatis 的房屋出租管理后台接口文档"));
    }
}